package tech.aichan.AiQA.service;

import org.springframework.data.domain.Page;
import tech.aichan.AiQA.model.dto.app.AppAddRequest;
import tech.aichan.AiQA.model.dto.app.AppEditRequest;
import tech.aichan.AiQA.model.dto.app.AppUpdateRequest;
import tech.aichan.AiQA.model.entity.App;
import com.baomidou.mybatisplus.extension.service.IService;
import tech.aichan.AiQA.model.vo.app.AppVO;

/**
* @author AiChan
* @description 针对表【app(应用)】的数据库操作Service
* @createDate 2024-05-30 14:15:41
*/
public interface AppService extends IService<App> {
    Long addApp(AppAddRequest appAddRequest);

    void deleteApp(Long id);

    Long updateApp(AppUpdateRequest appUpdateRequest);

    Long editApp(AppEditRequest appEditRequest);

    Page<App> listPageApp(String all, Long userId, Integer appType, int current, int pageSize , Boolean dateAsc);

    Page<AppVO> listPageAppVO(String all, Long userId, Integer appType, int current, int pageSize, Boolean dateAsc);

}
